package viralpatel.net.services;

import java.util.List;

import viralpatel.net.dao.ContactDAO;
import viralpatel.net.model.Contact;

public class ContactServiceImpl implements ContactService {

	private ContactDAO contactDAO;

	public void setContactDAO(ContactDAO contactDAO) {
		this.contactDAO = contactDAO;
	}

	@Override
	public void addContact(Contact contact) {
		contactDAO.addContact(contact);
	}

	@Override
	public List<Contact> listContact() {
		return contactDAO.listContact();
	}

	@Override
	public void removeContact(Integer id) {
		contactDAO.removeContact(id);
	}

}
